#ifndef __DATA_EXCHANGE_H__
#define __DATA_EXCHANGE_H__

#define WEB_MQ_KEY 517

typedef enum
{
    EN_MSG_TYPE_APP = 100,
    EN_MSG_TYPE_WEB = 200,

    EN_MSG_TYPE_MAX
} msg_type_t;

typedef struct
{
    int direction;
    int proc_status;
    char file_name[32];
    char data[2048];
} __attribute__((packed)) mq_data_t;

int data_exchange_mqclear(void);
int data_exchange_init(void);
void data_exchange_getpwd(char *pwd);
int data_exchange(const char *filename, const char *data, size_t size);

void web_response(int sta, const char *data);
#endif